<?php

if (!defined('BASEPATH'))
	exit('No direct script access allowed');

class Admin extends PNC_Controller {
	/*
	 * Index
	 * @access public
	 * @return void
	 */

	public function index() {
		redirect('record/show_record/');
	}

	/*
	 * Logout Admin
	 * @return void
	 * @access public
	 */

	public function logout_admin() {
//		$this->session->sess_destroy();
		$this->session->set_userdata('logout', show_message('You have been logout!', 'notice'));
		$this->session->unset_userdata('admin');
		redirect("main/");
	}

}

/* End of file admin.php */
/* Location: ./application/controllers/admin.php */